package com.example.test2;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "test2.auto")
public class MyProperties {
    /**
     * 自动配置类是否生效
     */
    private boolean enable;
    public boolean getEnable(){
        return this.enable;
    }
    public void setEnable(boolean enable){
        this.enable = enable;
    }
}
